package cn.edu.swpu.cins.u_chain.utils;

import org.springframework.stereotype.Service;

import java.util.Random;

@Service
public class RandomCode {

    public String getRandomCode() {
        Random random = new Random();
        StringBuilder result=new StringBuilder("");
        for (int i=0;i<6;i++)
        {
            result.append(random.nextInt(10));
        }
        return result.toString();
    }
}
